package com.chuangjiangx.member.basic.ddd.domain.model.msg;

import lombok.Setter;

import java.util.function.Supplier;

/**
 * @author cj-ch
 * @date 2018/3/22 下午1:59
 */

public abstract class AbstractMbrWXMsg implements MbrWXMsg{
    @Setter
    private Supplier<String> urlSupplier;

    @Override
    public String url() {
        return urlSupplier == null ? null : urlSupplier.get();
    }
}
